package com.bwie.system.mq.domain;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author Junchen_N1
 * @Date 2025/6/17 17:08
 * @ClassName EsRedPacketReceived
 * @Description TODO
 */
@Data
@IndexName("red_packet_received")
public class EsRedPacketReceived {
    /**
     * 红包领取记录表id
     */
    @IndexId(type = IdType.CUSTOMIZE)
    private Integer redPacketReceivedId;
    /**
     * 红包id
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer redPacketId;
    /**
     * 红包主题
     */
    @IndexField(fieldType = FieldType.TEXT,analyzer = "ik_max_word")
    private String redPacketName;
    /**
     * 用户id
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer userId;
    /**
     * 领取人
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String username;
    /**
     * 领取金额
     */
    @IndexField(fieldType = FieldType.DOUBLE)
    private BigDecimal receivedPrice;
    /**
     * 领取时间
     */
    @IndexField(fieldType = FieldType.LONG)
    private Date receivedTime;
}
